#ifndef _OLED_H
#define _OLED_H

#include "./i2c/i2c.h"

#define OLED_DEVICE_ADDRESS	0x78
#define OLED_CMD(cmd)			OLED_WriteReg(0x00, cmd)
#define OLED_DATA(data)		OLED_WriteReg(0x40, data)

void OLED_WriteReg(uint8_t RegAddress, uint8_t Data);
uint8_t OLED_ReadReg(uint8_t RegAddress);
void OLED_Init(void);
void OLED_Clear(void);
void OLED_On(void);
void OLED_Set_Pos(uint8_t x, uint8_t y);
void OLED_ShowChar(uint8_t x,uint8_t y,char chr,uint8_t Char_Size);
void OLED_ShowString(uint8_t x,uint8_t y,char *chr,uint8_t Char_Size);
void OLED_ShowNum(uint8_t x,uint8_t y,int num,uint8_t Size);
uint32_t OLED_Pow(uint8_t m,uint8_t n);
void OLED_ShowNum_RightAlign(uint8_t x,uint8_t y,int num,uint8_t len,uint8_t Size);
void OLED_ShowChinese(uint8_t x,uint8_t y,uint8_t no,uint8_t Size);

#endif
